home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / memory & system tools / tinymeter / source / tinymeter_prefs / tinymeter.h < prev    next >
C/C++ Source or Header  |  1996-04-07  |  3KB  |  149 lines

  1. /***************************************************************/
  2. /* defines                                                     */
  3. /***************************************************************/
  4. ///
  5. #define idle_none       0
  6. #define idle_executive  1
  7. #define idle_own        2
  8.  
  9. #define col_label       0
  10. #define col_format      1
  11. #define col_base        2
  12. #define col_current     3
  13. #define col_negative    4
  14. #define col_bright      5
  15. #define col_dark        6
  16. #define col_bg          7
  17.  
  18. #define bg_none         0
  19. #define bg_file         1
  20. #define bg_snap         2
  21.  
  22. #define win_normal      0
  23. #define win_fixed       1
  24.  
  25. #define bd_none         0
  26. #define bd_simple       1
  27. #define bd_standard     2
  28. #define bd_double       3
  29.  
  30. #define ind_centered    0
  31. #define ind_left        1
  32. #define ind_right       2
  33.  
  34. #define typ_none            0
  35. #define typ_all             1
  36. #define typ_chip            2
  37. #define typ_fast            3
  38. #define typ_volume          4
  39. #define typ_idle            5
  40. #define typ_retina          6
  41. #define typ_largest_chip    7
  42. #define typ_largest_fast    8
  43. #define typ_largest_total   9
  44. #define typ_largest_retina  10
  45. #define typ_clock_          11
  46. #define typ_image           12
  47. #define typ_virtual         13
  48.  
  49. #define typ_gauge       0
  50. #define typ_histmeter   1
  51. #define typ_clock       2
  52. ///
  53. /***************************************************************/
  54. /* gauge struct                                                */
  55. /***************************************************************/
  56. ///
  57. struct  GAU_Color
  58. {
  59.     UWORD   pen;
  60.     ULONG   red;    /* if pen is TRUE, this is the pen number */
  61.     ULONG   green;
  62.     ULONG   blue;
  63. };
  64.  
  65. struct tm_gau_set
  66. {
  67.     UWORD   type;
  68.     UWORD   gauge_type;
  69.  
  70.     UWORD   size_y;     /* in 100+x percent of the font size ! */
  71.  
  72.     char    font[128];
  73.     UWORD   font_size;
  74.  
  75.     char    label[16];
  76.     char    format[128];
  77.  
  78.     char    expansion[128]; /* used for image type and volume */
  79.     UWORD   indent;
  80.  
  81.     UWORD   sty_3d;
  82.     UWORD   sty_border;
  83.     UWORD   sty_bg;
  84.     UWORD   sty_shadow;
  85.     UWORD   sty_nogauge;
  86.     UWORD   sty_noformat;
  87.     UWORD   sty_nobase;
  88.  
  89.     struct  GAU_Color Colors[8];
  90.  
  91.     struct  tm_gau_set *next;
  92. };
  93. ///
  94. /***************************************************************/
  95. /* System struct                                               */
  96. /***************************************************************/
  97. ///
  98. struct tm_sys_set
  99. {
  100.     char    set_header[4];
  101.     UWORD   set_version;
  102.  
  103.     UWORD   x_pos;
  104.     UWORD   y_pos;
  105.     UWORD   x_siz;
  106.     UWORD   colums;
  107.  
  108.     char    pub_name[128];
  109.  
  110.     char    font_name[40];
  111.     UWORD   font_size;
  112.  
  113.     UWORD   bg_type;
  114.     char    bg_picture[128];
  115.     struct  GAU_Color bg_color;
  116.  
  117.     UWORD   vol_refresh;
  118.     UWORD   mem_refresh;
  119.  
  120.     UWORD   start_wait;
  121.     UWORD    start_usescreennotify;
  122.  
  123.     UWORD   win_move;
  124.     UWORD   win_backfront;
  125.     UWORD   win_border_x;
  126.     UWORD   win_border_y;
  127.     UWORD   win_space_x;
  128.     UWORD   win_space_y;
  129.  
  130.     UWORD   bd_type;
  131.     struct  GAU_Color bright_color;
  132.     struct  GAU_Color dark_color;
  133.  
  134.     UWORD   Executive;
  135. };
  136. ///
  137. /***************************************************************/
  138. /* tm_data                                                     */
  139. /***************************************************************/
  140. ///
  141. struct tm_data
  142. {
  143.     struct tm_sys_set *set;
  144.     struct tm_gau_set *list;
  145.  
  146.     UWORD  num_of_gaug;
  147. };
  148. ///
  149.